#include<stdio.h>
#include<unistd.h>
#include<fcntl.h>
int main()
{
    int newfd = dup(1);
    printf("newfd = %d\n", newfd);
    write(newfd, "1", 1);

    return 0;
}
